package com.wyman.factory.support;

import com.wyman.BeanException;
import com.wyman.factory.config.BeanDefinition;

import java.lang.reflect.Constructor;

/**
 * @Author 李伟民
 * @Description
 * @DateTime 2024/11/25 18:45
 */
public interface InstantiationStrategy {

    Object instantiate(BeanDefinition beanDefinition, String beanName, Constructor ctor,Object[] args) throws BeanException;
}
